package com.wnhz.work.yz.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.wnhz.work.yz.BaseActivity;
import com.wnhz.work.yz.R;

public class PlanDetailActivity extends BaseActivity implements View.OnClickListener {

    private TextView mPlan_type;
    private TextView mPlan_start_time;
    private TextView mPlan_end_time;
    private TextView mPlan_message;
    private LinearLayout mLl_end_time;
    private EditText mPlan_info;
    private EditText mPlan_theme;
    private LinearLayout mAdd_product;

    private void bindViews() {
        mPlan_type = (TextView) findViewById(R.id.plan_type);
        mPlan_info = (EditText) findViewById(R.id.plan_info);
        mPlan_start_time = (TextView) findViewById(R.id.plan_start_time);
        mLl_end_time = (LinearLayout) findViewById(R.id.ll_end_time);
        mPlan_end_time = (TextView) findViewById(R.id.plan_end_time);
        mPlan_theme = (EditText) findViewById(R.id.plan_theme);
        mPlan_message = (TextView) findViewById(R.id.plan_message);
        mAdd_product = (LinearLayout) findViewById(R.id.add_product);
//        message_recycler = (RecyclerView) findViewById(R.id.message_recycler);
//        message_recycler.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
//        adapter = new MyMeaagerAdapter(this, messageData);
//        message_recycler.setAdapter(adapter);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_plan_detail);
        initData();
        initTitle();
        initView();

    }

    private void initView() {


    }

    private String planid;

    private void initData() {
        planid = getIntent().getStringExtra("planid");
    }

    private void initTitle() {
        TextView title = (TextView) findViewById(R.id.view_main_middle_title);
        title.setText("会员的预约");
        findViewById(R.id.btn_main_left).setOnClickListener(this);


    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_main_left:
                finish();
                break;
        }
    }
}
